#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :xiaoshuo_17k.py
# @Time      :2024/2/26 00:00
# @Author    :Sherlock
import requests


def main():
    headers = {
        "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
        "Referer": "https://passport.17k.com/login/",
        "Origin": "https://passport.17k.com/",
    }
    data = {
        "loginName": "15027900535",
        "password": "bobo328410948"
    }
    se = requests.session()
    se.post("https://passport.17k.com/ck/user/login", headers=headers, data=data)
    se.post("https://passport.17k.com/ck/user/login", headers=headers, data=data)
    print(se.cookies)

    # url = "https://user.17k.com/ck/user/myInfo/88786357?bindInfo=1&appKey=2406394919"
    # response = session.get(url, headers=headers)
    # print(response.json())


if __name__ == "__main__":
    main()
